package com.marvels.system.common.service;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import com.marvels.common.dto.MarvelsResultDTO;
import com.marvels.common.dto.UserDTO;
import com.marvels.common.exception.MarvelsBusinessException;
import com.marvels.system.permission.dto.SysUserDTO;

/**
 * 系统登录服务接口
 * @author hm
 *
 */
public interface SysLoginService {
	/**
	 * 登录
	 * @param user
	 * @return
	 * @throws MarvelsBusinessException
	 */
	public MarvelsResultDTO login(UserDTO user,HttpServletRequest request)throws MarvelsBusinessException;
	
	/**
	 * 退出
	 * @return
	 * @throws MarvelsBusinessException
	 */
	public void logout()throws MarvelsBusinessException;
	
	/**
	 * 修改密码
	 * @param requestMap
	 * @throws MarvelsBusinessException
	 */
	public void editPassword(Map<String, String> requestMap)throws MarvelsBusinessException;
	
	/**
	 * 初始化密码
	 * @param user
	 * @throws MarvelsBusinessException
	 */
	public void initPassword(SysUserDTO user)throws MarvelsBusinessException;
}
